//
//  UISwitch+RxExtection.swift
//  YKSwiftRxExtection
//
//  Created by edward on 2022/1/10.
//

import UIKit
import RxSwift

extension Reactive where Base: UISwitch {
    
    public func on(_ animated:Bool) -> Binder<Bool> {
        Binder(self.base) { uiSwitch, on in
            uiSwitch.setOn(on, animated: animated)
        }
    }
    
}
